
/**
 * 
 * A Cargo object contains an index into the Commodity list and a quantity.
 *
 */
public class Cargo extends BaphiListItem {
	
	private int commodity;
	private int quantity;
	
	/**
	 * A Cargo object contains an index into the Commodity list and a quantity.
	 * @param commodity - index into Commodity list
	 * @param quantity
	 */
	public Cargo(int commodity, int quantity)
	{
		this.commodity = commodity;
		this.quantity = quantity;
	}
	
	/**
	 * 
	 * @return index into Commodity list
	 */
	public int getCommodity()
	{
		return commodity;
	}
	
	/**
	 * 
	 * @return quantity of this commodity
	 */
	public int getQuantity()
	{
		return quantity;
	}
}

